import service from '../index';

// 导入目录信息
export function importCatalog(params) {
    return service({
        url: '/catalog-info/import',
        method: 'post',
        data: params,
        // 标记为文件上传请求
        isUploadFile: true,
    });
}

// 导出目录信息
export function exportCatalog() {
    return service({
        url: '/catalog-info/export',
        method: 'get',
    });
}

// 分页查询目录
export function getCatalogPage(params) {
    return service({
        url: '/catalog-info/page',
        method: 'post',
        data: params,
    });
}

// 新增修改目录
export function updateUser(params) {
    return service({
        url: '/catalog-info/save',
        method: 'post',
        data: params,
    });
}
